package com.mlk.engUser.po;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mlk.core.constants.Constant;
import com.mlk.engUser.vo.EngUserRemainVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 用户新增余额
 * @author trekxu
 * @since 2019-06-21
 */
@Data
@NoArgsConstructor
public class EngUserInRemain extends EngUserRemainVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String openId;

    /**
     * 类型
     */
    private Integer type;
    @JsonFormat(pattern = Constant.DATE_TIME_FORMAT)
    private Date createTime;

    /**
     * 金额
     */
    private BigDecimal amount;

}
